package io.zztec.controller.api;

import io.zztec.domain.City;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zztec on 2016-01-04.
 */
@RestController
public class CityApi {
    private final String baseUrl = "/api";

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    /**
     * 新增
     * @param test
     * @return
     */
    @RequestMapping("/city")
    public City getProduct() {
        City city = new City();
        city.setId(1);
        city.setName("zz");
        return city;
    }

}
